package dry.example.controller;

import dry.example.beans.MyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zc
 */
@RestController
public class BeanController {

    @Autowired
    MyBean myBean;

    @GetMapping(value = "bean")
    public Object bean() {
        return myBean.add(10, 90);
    }

}
